package com.example.eback.dao;

import com.example.eback.entity.Proj.user_proj;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


public interface user_projDAO extends JpaRepository<user_proj,Integer> {
    List<user_proj> findByUidAndPermissionNotInOrderByTimeDesc(int uid, String permission);
    List<user_proj> findByUidAndPermissionOrderByTimeDesc(int uid, String permission);
    user_proj findByUidAndPid(int uid,int pid);
    user_proj findAllByUidAndPidAndPermission(int uid,int pid,  String permission);
    List<user_proj> findAllByUidOrderByTimeDesc(int uid);
}
